package org.ncibi.cytoscape.metscape.network;

import org.ncibi.cytoscape.metscape.data.Attributes;
import org.ncibi.metab.network.attribute.EnzymeAttribute;
import org.ncibi.metab.network.node.EnzymeNode;
import org.ncibi.metab.network.node.MetabolicNode;

public class EnzymeNodeTranslator extends AbstractNodeTranslator implements NodeTranslator
{
	
	@Override
    protected String getCanonicalName(MetabolicNode node) {
    	return EnzymeNode.getName(node);
    }

    @Override
    protected void addAttributes(String id, MetabolicNode node)
    {
    	Attributes.node.setAttribute(id, EnzymeAttribute.ECNUM.toAttributeName(), EnzymeNode.getEcnum(node));
        Attributes.node.setAttribute(id, EnzymeAttribute.NAME.toAttributeName(), EnzymeNode.getName(node));
    }
}
